Dpathconf

Section: Oct. 1, 1991 (2)
Updated: MiNT Programmer's Manual
Index Return to Main Contents
 

NAME

Dpathconf - get information about file system configuration  

SYNOPSIS

LONG Dpathconf( char *name, WORD mode );
 

DESCRIPTION

Dpathconf returns information about various limits or capabilities of the file system containing the file named name . The variable mode controls which limit or capability is being queried, as follows:
       mode     Value Returned

        -1      return max. legal value for n in Dpathconf(n)
        0       return internal limit on the number of open files
        1       return max. number of links to a file
        2       return max. length of a full path name
        3       return max. length of an individual file name
        4       return number of bytes that can be written atomically
        5       return information about file name truncation
If any of these items are unlimited, then 0x7fffffffL is returned.

For mode 5, return information about file name truncation, the returned value has the following meaning:

0
File names are never truncated; if the file name in any system call affecting this directory exceeds the maximum length (returned by mode 3), then the error value ERANGE is returned from that system call.
1
File names are automatically truncated to the maximum length.
2
File names are truncated according to DOS rules, i.e. to a maximum 8 character base name and a maximum 3 character extension.
 

SEE ALSO

Sysconf(2)


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 16:01:47 GMT, March 03, 2023